
#include <iostream>
#include "main_app.h"
#include "http_client.h"
using namespace std;

void sighandle(int sig)
{
    printf("catch signal %d\n", sig);     
    exit(0);
}

int main()
{    
    signal(SIGCHLD,SIG_IGN);
    signal(SIGINT, sighandle);

   // HttpClient::SendReq("http:://127.0.0.1:8080/saveVideo?uniqueCode=1&user=test&path=/mnt/vod/test/20200602193229/video.mp4&otherParam=20200602193229@test@28716E0E-82D7-D2FF-8520-ED93036FE526@402020-06-0219:32:29");     
    MainApp app;
    app.start_app();

     while(true) {
        // sleep(1);
        // printf("beat...\n");
        pause();
    }

    printf("video non linear: app over!!!");
    return 0;
} 